Integrand size = 39, antiderivative size = 166 \[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 g^2 \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 c g^2 \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d (c+d) f \sqrt {a+b \sec (e+f x)}} \]
[Out]
Time = 1.05 (sec) , antiderivative size = 166, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {4064, 3944, 2886, 2884, 4060} \[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\frac {2 g^2 \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 c g^2 \sqrt {g \sec (e+f x)} \sqrt {\frac {a \cos (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right )}{d f (c+d) \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Rule 2884
Rule 2886
Rule 3944
Rule 4060
Rule 4064
Rubi steps \begin{align*} \text {integral}& = \frac {g \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)}} \, dx}{d}-\frac {(c g) \int \frac {(g \sec (e+f x))^{3/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx}{d} \\ & = \frac {\left (g^2 \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {\sec (e+f x)}{\sqrt {b+a \cos (e+f x)}} \, dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {\left (c g^2 \sqrt {b+a \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {b+a \cos (e+f x)} (d+c \cos (e+f x))} \, dx}{d \sqrt {a+b \sec (e+f x)}} \\ & = \frac {\left (g^2 \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {g \sec (e+f x)}\right ) \int \frac {\sec (e+f x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}}} \, dx}{d \sqrt {a+b \sec (e+f x)}}-\frac {\left (c g^2 \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (e+f x)}{a+b}} (d+c \cos (e+f x))} \, dx}{d \sqrt {a+b \sec (e+f x)}} \\ & = \frac {2 g^2 \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \operatorname {EllipticPi}\left (2,\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d f \sqrt {a+b \sec (e+f x)}}-\frac {2 c g^2 \sqrt {\frac {b+a \cos (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\frac {1}{2} (e+f x),\frac {2 a}{a+b}\right ) \sqrt {g \sec (e+f x)}}{d (c+d) f \sqrt {a+b \sec (e+f x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 25.39 (sec) , antiderivative size = 246, normalized size of antiderivative = 1.48 \[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=-\frac {2 i g \sqrt {-\frac {a (-1+\cos (e+f x))}{a+b}} \sqrt {\frac {a (1+\cos (e+f x))}{a-b}} \sqrt {b+a \cos (e+f x)} \cot (e+f x) \left ((-b c+a d) \operatorname {EllipticPi}\left (1-\frac {a}{b},i \text {arcsinh}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (e+f x)}\right ),\frac {-a+b}{a+b}\right )+b c \operatorname {EllipticPi}\left (\frac {(a-b) c}{-b c+a d},i \text {arcsinh}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (e+f x)}\right ),\frac {-a+b}{a+b}\right )\right ) (g \sec (e+f x))^{3/2}}{\sqrt {\frac {1}{a-b}} b d (-b c+a d) f \sqrt {a+b \sec (e+f x)}} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 9.42 (sec) , antiderivative size = 313, normalized size of antiderivative = 1.89
method | result | size |
default | \(\frac {2 i \left (\operatorname {EllipticF}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), \sqrt {-\frac {a -b}{a +b}}\right ) d c +\operatorname {EllipticF}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), \sqrt {-\frac {a -b}{a +b}}\right ) d^{2}+2 c^{2} \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -1, i \sqrt {\frac {a -b}{a +b}}\right )-2 \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -1, i \sqrt {\frac {a -b}{a +b}}\right ) d^{2}-2 c^{2} \operatorname {EllipticPi}\left (i \left (\cot \left (f x +e \right )-\csc \left (f x +e \right )\right ), -\frac {c -d}{c +d}, i \sqrt {\frac {a -b}{a +b}}\right )\right ) \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (a +b \right ) \left (\cos \left (f x +e \right )+1\right )}}\, \sqrt {a +b \sec \left (f x +e \right )}\, \sqrt {g \sec \left (f x +e \right )}\, g^{2} \cos \left (f x +e \right )}{f d \left (c +d \right ) \left (c -d \right ) \sqrt {\frac {1}{\cos \left (f x +e \right )+1}}\, \left (b +a \cos \left (f x +e \right )\right )}\) | \(313\) |
[In]
[Out]
Timed out. \[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\left (g \sec \left (f x + e\right )\right )^{\frac {5}{2}}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int { \frac {\left (g \sec \left (f x + e\right )\right )^{\frac {5}{2}}}{\sqrt {b \sec \left (f x + e\right ) + a} {\left (d \sec \left (f x + e\right ) + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(g \sec (e+f x))^{5/2}}{\sqrt {a+b \sec (e+f x)} (c+d \sec (e+f x))} \, dx=\int \frac {{\left (\frac {g}{\cos \left (e+f\,x\right )}\right )}^{5/2}}{\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\left (c+\frac {d}{\cos \left (e+f\,x\right )}\right )} \,d x \]
[In]
[Out]